<!--
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2022-05-27 11:28:04
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-05-31 10:04:23
-->
<template>
  <div class="notive">
    <div class="title">
      <div class="titleDetail">更新公告</div>
      <div class="more">更多</div>
    </div>
    <div class="content">
      <div class="conTitle">
        <span class="edition">版本{{announcement.version}}</span>
        <span class="time">{{announcement.time}}</span>
      </div>
      <div class="contentDetail">
        <p>{{announcement.content}}</p>
      </div>
    </div>
  </div>
</template>

<script>
import { notice } from "@/api/index";
export default {
  data() {
    return {
      announcement: {},
    };
  },
  created() {
    this.getNotice();
  },
  methods: {
    getNotice() {
      notice().then((res) => {
        this.announcement = res.data;
      });
    },
  },
};
</script>

<style lang="less" scoped>
.notive {
  width: 401px;
  height: 390px;
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  .title {
    display: flex;
    justify-content: space-between;
    .titleDetail {
      font-size: 16px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #2b2b2b;
    }
    .more {
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #1267fa;
    }
  }
  .content {
    margin-top: 24px;
    width: 351px;
    height: 276px;
    background: #f8f9fb;
    border-radius: 6px;
    padding: 24px;
    .conTitle {
      .edition {
        font-size: 16px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #2b2b2b;
      }
      .time {
        margin-left: 10px;
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #2b2b2b;
      }
    }
    .contentDetail {
      margin-top: 6px;
      p {
        margin-top: 14px;
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #666666;
        line-height: 14px;
      }
    }
  }
}
</style>